//! Copyright 2012 NTH Technology, Inc.
//! All rights reserved
//!
#ifndef __BoardHardware_h__
#define __BoardHardware_h__

#define HW_BOARD_V1
//#define HW_BOARD_V2


#if defined ( HW_BOARD_V1 )

    //--------------------------------------------------------------
    // define LED
    #define LED_PERIPH          RCC_APB2Periph_GPIOA
    #define LED_PORT            GPIOA
    #define LED_PIN             GPIO_Pin_2
    #define DEBUG_LED_OFF       GPIOA->BRR = (1<<2)
    #define DEBUG_LED_ON        GPIOA->BSRR  = (1<<2)
    #define DEBUG_LED_INV       if ((GPIOA->IDR & (1<<2))!=0) DEBUG_LED_OFF; else DEBUG_LED_ON

#elif defined ( HW_BOARD_V2 )


#endif  // HW_BOARD_V1


#endif  // __BoardHardware_h__

